<script setup>
import { useRouter } from 'vue-router'
import HomeBanner from "../components/HomeBanner.vue";
import PlayList from "../components/PlayList.vue";
import NewSongs from "../components/NewSongs.vue";

const router = useRouter();

const toPage = (path) => {
  router.push({
    path
  });
}
</script>

<template>
  <HomeBanner />
  <div class="selected-title">精选歌单</div>
  <play-list />
  <div class="selected-title" @click="toPage('/newSongs')">
    <span>最新歌曲</span>
    <span class="iconfont icon-xiangyoujiantou"></span>
  </div>
  <new-songs />
</template>

<style scoped lang="scss">
.selected-title {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  text-align: left;
  letter-spacing: 2px;
  cursor: pointer;
  span {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    letter-spacing: 2px;
  }
  .iconfont {
    color: #000000;
  }
}
</style>
